\hypertarget{ili9341__adafruit_8c}{}\section{3rd\+\_\+party/ili9341\+\_\+adafruit.c File Reference}
\label{ili9341__adafruit_8c}\index{3rd\+\_\+party/ili9341\+\_\+adafruit.\+c@{3rd\+\_\+party/ili9341\+\_\+adafruit.\+c}}
{\ttfamily \#include \char`\"{}user\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include $<$stdint.\+h$>$}\\*
{\ttfamily \#include $<$stdarg.\+h$>$}\\*
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$math.\+h$>$}\\*
{\ttfamily \#include \char`\"{}display/font.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}display/ili9341.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}3rd\+\_\+party/ili9341\+\_\+adafruit.\+h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_a70178a557e297238cb4c025b3940921c}{tft\+\_\+config\+Register} (void)
\begin{DoxyCompactList}\small\item\em Initialize I\+L\+I9341 display. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_a6555e949cac7115ac45eecc10e6f5dd9}{tft\+\_\+draw\+Bitmap} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t \hyperlink{ili9341_8c_a12ad102c2d1e7e119fdc040b0c922c7e}{x}, int16\+\_\+t \hyperlink{ili9341_8c_afe490938209e0b6b15224c05a01f0b40}{y}, const \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} $\ast$bitmap, int16\+\_\+t w, int16\+\_\+t h)
\begin{DoxyCompactList}\small\item\em Draw bitmap Replaced by \hyperlink{ili9341_8c_a2e70141c8de6a4199f9fc39d8cfc758c}{tft\+\_\+write\+Rect()} \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_acdea63f06f35ff590e7910b4150debd0}{tft\+\_\+draw\+Circle} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Draw a circle outline. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_a9ab6da43ee2245051f4f48a063efb012}{tft\+\_\+draw\+Circle\+Helper} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, \hyperlink{send_8c_aba7bc1797add20fe3efdf37ced1182c5}{uint8\+\_\+t} cornername, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Draw a circle helper. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_a33b9d8c2ce553e56d4996f2a8dc55773}{tft\+\_\+fill\+Circle\+Helper} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, \hyperlink{send_8c_aba7bc1797add20fe3efdf37ced1182c5}{uint8\+\_\+t} cornername, int16\+\_\+t delta, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Fill circle helper. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_a964954bfbc54b4b4e3d5ecf731f1380e}{tft\+\_\+fill\+Circle} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Fill circle. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_afb26011e885aa7c741e30d691175273b}{tft\+\_\+draw\+Rect} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t \hyperlink{ili9341_8c_a12ad102c2d1e7e119fdc040b0c922c7e}{x}, int16\+\_\+t \hyperlink{ili9341_8c_afe490938209e0b6b15224c05a01f0b40}{y}, int16\+\_\+t w, int16\+\_\+t h, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Draw a rectangle. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_a80857f260fb5efd7f955a728f3c139b9}{tft\+\_\+draw\+Round\+Rect} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t \hyperlink{ili9341_8c_a12ad102c2d1e7e119fdc040b0c922c7e}{x}, int16\+\_\+t \hyperlink{ili9341_8c_afe490938209e0b6b15224c05a01f0b40}{y}, int16\+\_\+t w, int16\+\_\+t h, int16\+\_\+t r, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Draw a rounded rectangle. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_ada116c33c4be6326c20ec3281545e39e}{tft\+\_\+fill\+Round\+Rect} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t \hyperlink{ili9341_8c_a12ad102c2d1e7e119fdc040b0c922c7e}{x}, int16\+\_\+t \hyperlink{ili9341_8c_afe490938209e0b6b15224c05a01f0b40}{y}, int16\+\_\+t w, int16\+\_\+t h, int16\+\_\+t r, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Fill a rounded rectangle. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_aa5c14c0f98729b37500233548eff4664}{tft\+\_\+draw\+Triangle} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t x1, int16\+\_\+t y1, int16\+\_\+t x2, int16\+\_\+t y2, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Draw a triangle. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{ili9341__adafruit_8c_ae5a07f4dcd1a2347a49e9e7d6af7ded8}{tft\+\_\+fill\+Triangle} (\hyperlink{structwindow}{window} $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t x1, int16\+\_\+t y1, int16\+\_\+t x2, int16\+\_\+t y2, \hyperlink{send_8c_a273cf69d639a59973b6019625df33e30}{uint16\+\_\+t} color)
\begin{DoxyCompactList}\small\item\em Fill a triangle. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyParagraph}{Copyright (c) 2013 Adafruit Industries. All rights reserved.}
Minor Revisions by 2015 Mike Gore to add multiple window support 
\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/adafruit/Adafruit-GFX-Library}{\tt https\+://github.\+com/adafruit/\+Adafruit-\/\+G\+F\+X-\/\+Library} 
\end{DoxySeeAlso}


\subsection{Function Documentation}
\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+config\+Register@{tft\+\_\+config\+Register}}
\index{tft\+\_\+config\+Register@{tft\+\_\+config\+Register}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+config\+Register(void)}{tft_configRegister(void)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+config\+Register (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_a70178a557e297238cb4c025b3940921c}{}\label{ili9341__adafruit_8c_a70178a557e297238cb4c025b3940921c}


Initialize I\+L\+I9341 display. 

This is the core graphics library for all our displays, providing a common set of graphics primitives (points, lines, circles, etc.). It needs to be paired with a hardware-\/specific library for each display device we carry (to handle the lower-\/level functions).

Adafruit invests time and resources providing this open source code, please support Adafruit \& open-\/source hardware by purchasing products from Adafruit!

Copyright (c) 2013 Adafruit Industries. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met\+:


\begin{DoxyItemize}
\item Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
\item Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
\end{DoxyItemize}

T\+H\+IS S\+O\+F\+T\+W\+A\+RE IS P\+R\+O\+V\+I\+D\+ED BY T\+HE C\+O\+P\+Y\+R\+I\+G\+HT H\+O\+L\+D\+E\+RS A\+ND C\+O\+N\+T\+R\+I\+B\+U\+T\+O\+RS \char`\"{}\+A\+S I\+S\char`\"{} A\+ND A\+NY E\+X\+P\+R\+E\+SS OR I\+M\+P\+L\+I\+ED W\+A\+R\+R\+A\+N\+T\+I\+ES, I\+N\+C\+L\+U\+D\+I\+NG, B\+UT N\+OT L\+I\+M\+I\+T\+ED TO, T\+HE I\+M\+P\+L\+I\+ED W\+A\+R\+R\+A\+N\+T\+I\+ES OF M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY A\+ND F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE A\+RE D\+I\+S\+C\+L\+A\+I\+M\+ED. IN NO E\+V\+E\+NT S\+H\+A\+LL T\+HE C\+O\+P\+Y\+R\+I\+G\+HT H\+O\+L\+D\+ER OR C\+O\+N\+T\+R\+I\+B\+U\+T\+O\+RS BE L\+I\+A\+B\+LE F\+OR A\+NY D\+I\+R\+E\+CT, I\+N\+D\+I\+R\+E\+CT, I\+N\+C\+I\+D\+E\+N\+T\+AL, S\+P\+E\+C\+I\+AL, E\+X\+E\+M\+P\+L\+A\+RY, OR C\+O\+N\+S\+E\+Q\+U\+E\+N\+T\+I\+AL D\+A\+M\+A\+G\+ES (I\+N\+C\+L\+U\+D\+I\+NG, B\+UT N\+OT L\+I\+M\+I\+T\+ED TO, P\+R\+O\+C\+U\+R\+E\+M\+E\+NT OF S\+U\+B\+S\+T\+I\+T\+U\+TE G\+O\+O\+DS OR S\+E\+R\+V\+I\+C\+ES; L\+O\+SS OF U\+SE, D\+A\+TA, OR P\+R\+O\+F\+I\+TS; OR B\+U\+S\+I\+N\+E\+SS I\+N\+T\+E\+R\+R\+U\+P\+T\+I\+ON) H\+O\+W\+E\+V\+ER C\+A\+U\+S\+ED A\+ND ON A\+NY T\+H\+E\+O\+RY OF L\+I\+A\+B\+I\+L\+I\+TY, W\+H\+E\+T\+H\+ER IN C\+O\+N\+T\+R\+A\+CT, S\+T\+R\+I\+CT L\+I\+A\+B\+I\+L\+I\+TY, OR T\+O\+RT (I\+N\+C\+L\+U\+D\+I\+NG N\+E\+G\+L\+I\+G\+E\+N\+CE OR O\+T\+H\+E\+R\+W\+I\+SE) A\+R\+I\+S\+I\+NG IN A\+NY W\+AY O\+UT OF T\+HE U\+SE OF T\+H\+IS S\+O\+F\+T\+W\+A\+RE, E\+V\+EN IF A\+D\+V\+I\+S\+ED OF T\+HE P\+O\+S\+S\+I\+B\+I\+L\+I\+TY OF S\+U\+CH D\+A\+M\+A\+GE.\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 57 of file ili9341\+\_\+adafruit.\+c.



Referenced by tft\+\_\+init().

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+draw\+Bitmap@{tft\+\_\+draw\+Bitmap}}
\index{tft\+\_\+draw\+Bitmap@{tft\+\_\+draw\+Bitmap}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+draw\+Bitmap(window $\ast$win, int16\+\_\+t x, int16\+\_\+t y, const uint16\+\_\+t $\ast$bitmap, int16\+\_\+t w, int16\+\_\+t h)}{tft_drawBitmap(window *win, int16_t x, int16_t y, const uint16_t *bitmap, int16_t w, int16_t h)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+draw\+Bitmap (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x, }
\item[{int16\+\_\+t}]{y, }
\item[{const {\bf uint16\+\_\+t} $\ast$}]{bitmap, }
\item[{int16\+\_\+t}]{w, }
\item[{int16\+\_\+t}]{h}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_a6555e949cac7115ac45eecc10e6f5dd9}{}\label{ili9341__adafruit_8c_a6555e949cac7115ac45eecc10e6f5dd9}


Draw bitmap Replaced by \hyperlink{ili9341_8c_a2e70141c8de6a4199f9fc39d8cfc758c}{tft\+\_\+write\+Rect()} 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x} & X offset \\
\hline
\mbox{\tt in}  & {\em y} & Y offset \\
\hline
\mbox{\tt in}  & {\em $\ast$bitmap} & bitmap \\
\hline
\mbox{\tt in}  & {\em w} & Width of bitmap \\
\hline
\mbox{\tt in}  & {\em h} & Height of bitmap \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 184 of file ili9341\+\_\+adafruit.\+c.

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+draw\+Circle@{tft\+\_\+draw\+Circle}}
\index{tft\+\_\+draw\+Circle@{tft\+\_\+draw\+Circle}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+draw\+Circle(window $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, uint16\+\_\+t color)}{tft_drawCircle(window *win, int16_t x0, int16_t y0, int16_t r, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+draw\+Circle (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x0, }
\item[{int16\+\_\+t}]{y0, }
\item[{int16\+\_\+t}]{r, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_acdea63f06f35ff590e7910b4150debd0}{}\label{ili9341__adafruit_8c_acdea63f06f35ff590e7910b4150debd0}


Draw a circle outline. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x0} & X offset \\
\hline
\mbox{\tt in}  & {\em y0} & Y offset \\
\hline
\mbox{\tt in}  & {\em r} & Radius of circle \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 201 of file ili9341\+\_\+adafruit.\+c.



Referenced by user\+\_\+loop().

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+draw\+Circle\+Helper@{tft\+\_\+draw\+Circle\+Helper}}
\index{tft\+\_\+draw\+Circle\+Helper@{tft\+\_\+draw\+Circle\+Helper}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+draw\+Circle\+Helper(window $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, uint8\+\_\+t cornername, uint16\+\_\+t color)}{tft_drawCircleHelper(window *win, int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+draw\+Circle\+Helper (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x0, }
\item[{int16\+\_\+t}]{y0, }
\item[{int16\+\_\+t}]{r, }
\item[{{\bf uint8\+\_\+t}}]{cornername, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_a9ab6da43ee2245051f4f48a063efb012}{}\label{ili9341__adafruit_8c_a9ab6da43ee2245051f4f48a063efb012}


Draw a circle helper. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x0} & X offset \\
\hline
\mbox{\tt in}  & {\em y0} & Y offset \\
\hline
\mbox{\tt in}  & {\em r} & Radius of circle \\
\hline
\mbox{\tt in}  & {\em cornername} & Corner to draw \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 248 of file ili9341\+\_\+adafruit.\+c.



Referenced by tft\+\_\+draw\+Round\+Rect().

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+draw\+Rect@{tft\+\_\+draw\+Rect}}
\index{tft\+\_\+draw\+Rect@{tft\+\_\+draw\+Rect}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+draw\+Rect(window $\ast$win, int16\+\_\+t x, int16\+\_\+t y, int16\+\_\+t w, int16\+\_\+t h, uint16\+\_\+t color)}{tft_drawRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+draw\+Rect (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x, }
\item[{int16\+\_\+t}]{y, }
\item[{int16\+\_\+t}]{w, }
\item[{int16\+\_\+t}]{h, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_afb26011e885aa7c741e30d691175273b}{}\label{ili9341__adafruit_8c_afb26011e885aa7c741e30d691175273b}


Draw a rectangle. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x} & X offset \\
\hline
\mbox{\tt in}  & {\em y} & Y offset \\
\hline
\mbox{\tt in}  & {\em w} & Width \\
\hline
\mbox{\tt in}  & {\em h} & Height \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 363 of file ili9341\+\_\+adafruit.\+c.

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+draw\+Round\+Rect@{tft\+\_\+draw\+Round\+Rect}}
\index{tft\+\_\+draw\+Round\+Rect@{tft\+\_\+draw\+Round\+Rect}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+draw\+Round\+Rect(window $\ast$win, int16\+\_\+t x, int16\+\_\+t y, int16\+\_\+t w, int16\+\_\+t h, int16\+\_\+t r, uint16\+\_\+t color)}{tft_drawRoundRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+draw\+Round\+Rect (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x, }
\item[{int16\+\_\+t}]{y, }
\item[{int16\+\_\+t}]{w, }
\item[{int16\+\_\+t}]{h, }
\item[{int16\+\_\+t}]{r, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_a80857f260fb5efd7f955a728f3c139b9}{}\label{ili9341__adafruit_8c_a80857f260fb5efd7f955a728f3c139b9}


Draw a rounded rectangle. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x} & X offset \\
\hline
\mbox{\tt in}  & {\em y} & Y offset \\
\hline
\mbox{\tt in}  & {\em w} & Width \\
\hline
\mbox{\tt in}  & {\em h} & Height \\
\hline
\mbox{\tt in}  & {\em r} & Radius \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 384 of file ili9341\+\_\+adafruit.\+c.

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+draw\+Triangle@{tft\+\_\+draw\+Triangle}}
\index{tft\+\_\+draw\+Triangle@{tft\+\_\+draw\+Triangle}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+draw\+Triangle(window $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t x1, int16\+\_\+t y1, int16\+\_\+t x2, int16\+\_\+t y2, uint16\+\_\+t color)}{tft_drawTriangle(window *win, int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+draw\+Triangle (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x0, }
\item[{int16\+\_\+t}]{y0, }
\item[{int16\+\_\+t}]{x1, }
\item[{int16\+\_\+t}]{y1, }
\item[{int16\+\_\+t}]{x2, }
\item[{int16\+\_\+t}]{y2, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_aa5c14c0f98729b37500233548eff4664}{}\label{ili9341__adafruit_8c_aa5c14c0f98729b37500233548eff4664}


Draw a triangle. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x0} & X0 offset \\
\hline
\mbox{\tt in}  & {\em y0} & Y0 offset \\
\hline
\mbox{\tt in}  & {\em x1} & X1 offset \\
\hline
\mbox{\tt in}  & {\em y1} & Y1 offset \\
\hline
\mbox{\tt in}  & {\em x2} & X2 offset \\
\hline
\mbox{\tt in}  & {\em y2} & Y2 offset \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 437 of file ili9341\+\_\+adafruit.\+c.

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+fill\+Circle@{tft\+\_\+fill\+Circle}}
\index{tft\+\_\+fill\+Circle@{tft\+\_\+fill\+Circle}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+fill\+Circle(window $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, uint16\+\_\+t color)}{tft_fillCircle(window *win, int16_t x0, int16_t y0, int16_t r, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+fill\+Circle (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x0, }
\item[{int16\+\_\+t}]{y0, }
\item[{int16\+\_\+t}]{r, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_a964954bfbc54b4b4e3d5ecf731f1380e}{}\label{ili9341__adafruit_8c_a964954bfbc54b4b4e3d5ecf731f1380e}


Fill circle. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x0} & X offset \\
\hline
\mbox{\tt in}  & {\em y0} & Y offset \\
\hline
\mbox{\tt in}  & {\em r} & Radius \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 346 of file ili9341\+\_\+adafruit.\+c.

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+fill\+Circle\+Helper@{tft\+\_\+fill\+Circle\+Helper}}
\index{tft\+\_\+fill\+Circle\+Helper@{tft\+\_\+fill\+Circle\+Helper}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+fill\+Circle\+Helper(window $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t r, uint8\+\_\+t cornername, int16\+\_\+t delta, uint16\+\_\+t color)}{tft_fillCircleHelper(window *win, int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+fill\+Circle\+Helper (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x0, }
\item[{int16\+\_\+t}]{y0, }
\item[{int16\+\_\+t}]{r, }
\item[{{\bf uint8\+\_\+t}}]{cornername, }
\item[{int16\+\_\+t}]{delta, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_a33b9d8c2ce553e56d4996f2a8dc55773}{}\label{ili9341__adafruit_8c_a33b9d8c2ce553e56d4996f2a8dc55773}


Fill circle helper. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x0} & X offset \\
\hline
\mbox{\tt in}  & {\em y0} & Y offset \\
\hline
\mbox{\tt in}  & {\em r} & Radius of circle \\
\hline
\mbox{\tt in}  & {\em cornername} & Corner to draw \\
\hline
\mbox{\tt in}  & {\em delta} & X or X offset \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 302 of file ili9341\+\_\+adafruit.\+c.



Referenced by tft\+\_\+fill\+Circle(), and tft\+\_\+fill\+Round\+Rect().

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+fill\+Round\+Rect@{tft\+\_\+fill\+Round\+Rect}}
\index{tft\+\_\+fill\+Round\+Rect@{tft\+\_\+fill\+Round\+Rect}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+fill\+Round\+Rect(window $\ast$win, int16\+\_\+t x, int16\+\_\+t y, int16\+\_\+t w, int16\+\_\+t h, int16\+\_\+t r, uint16\+\_\+t color)}{tft_fillRoundRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+fill\+Round\+Rect (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x, }
\item[{int16\+\_\+t}]{y, }
\item[{int16\+\_\+t}]{w, }
\item[{int16\+\_\+t}]{h, }
\item[{int16\+\_\+t}]{r, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_ada116c33c4be6326c20ec3281545e39e}{}\label{ili9341__adafruit_8c_ada116c33c4be6326c20ec3281545e39e}


Fill a rounded rectangle. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x} & X offset \\
\hline
\mbox{\tt in}  & {\em y} & Y offset \\
\hline
\mbox{\tt in}  & {\em w} & Width \\
\hline
\mbox{\tt in}  & {\em h} & Height \\
\hline
\mbox{\tt in}  & {\em r} & Radius \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 414 of file ili9341\+\_\+adafruit.\+c.

\index{ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}!tft\+\_\+fill\+Triangle@{tft\+\_\+fill\+Triangle}}
\index{tft\+\_\+fill\+Triangle@{tft\+\_\+fill\+Triangle}!ili9341\+\_\+adafruit.\+c@{ili9341\+\_\+adafruit.\+c}}
\subsubsection[{\texorpdfstring{tft\+\_\+fill\+Triangle(window $\ast$win, int16\+\_\+t x0, int16\+\_\+t y0, int16\+\_\+t x1, int16\+\_\+t y1, int16\+\_\+t x2, int16\+\_\+t y2, uint16\+\_\+t color)}{tft_fillTriangle(window *win, int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void tft\+\_\+fill\+Triangle (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win, }
\item[{int16\+\_\+t}]{x0, }
\item[{int16\+\_\+t}]{y0, }
\item[{int16\+\_\+t}]{x1, }
\item[{int16\+\_\+t}]{y1, }
\item[{int16\+\_\+t}]{x2, }
\item[{int16\+\_\+t}]{y2, }
\item[{{\bf uint16\+\_\+t}}]{color}
\end{DoxyParamCaption}
)}\hypertarget{ili9341__adafruit_8c_ae5a07f4dcd1a2347a49e9e7d6af7ded8}{}\label{ili9341__adafruit_8c_ae5a07f4dcd1a2347a49e9e7d6af7ded8}


Fill a triangle. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$win} & window structure \\
\hline
\mbox{\tt in}  & {\em x0} & X0 offset \\
\hline
\mbox{\tt in}  & {\em y0} & Y0 offset \\
\hline
\mbox{\tt in}  & {\em x1} & X1 offset \\
\hline
\mbox{\tt in}  & {\em y1} & Y1 offset \\
\hline
\mbox{\tt in}  & {\em x2} & X2 offset \\
\hline
\mbox{\tt in}  & {\em y2} & Y2 offset \\
\hline
\mbox{\tt in}  & {\em color} & Color \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 458 of file ili9341\+\_\+adafruit.\+c.

